<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { mapState } from "Vuex";
export default {
  name: 'App',
  data(){
     return{

     }
  },
  created(){
    this.module();
    this.issule()
  },
   computed: {
    ...mapState(["typedt"])
  },
  methods:{
     module() {
            this.$api.post(this.$url.module, "", res => {
                // console.log(res.data);
                this.$store.commit("getModule", JSON.stringify(res.data.data));
            });
        },
        issule(){
            this.$api.post(this.$url.current,{
                module:this.typedt
            },res=>{
                 this.$store.commit("getNper", JSON.stringify(res.data.data));
            })
        }
  }
}
</script>

<style>
*{
  margin: 0;
  padding: 0;
  list-style: none;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #666;
  width: 100%;
  height: 100%;
}
</style>
